package pk;

import ch.hsr.geohash.GeoHash;
import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.hive.ql.exec.UDF;
@Description
public class geosh extends UDF {
    public String evaluate (double latitude,double ltd,int pre){
        GeoHash geoHash = GeoHash.withCharacterPrecision(latitude, ltd, pre);
        return geoHash.toBase32();
    }
}
